package com.youkeyi.ddy.cloud.common.api.basic.pub.mapping;

import com.youkeyi.ddy.cloud.common.api.basic.pub.mapping.dto.PublicMappingListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.mapping.param.PublicMappingBusinessUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.mapping.param.PublicMappingQueryCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * PublicMappingCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/19 2:32 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/public/mapping/fallback")
public class PublicMappingCloudServiceFallback implements PublicMappingCloudService {

    @Override
    public PublicMappingListCloudDto query(PublicMappingQueryCloudParam param) {
        return new PublicMappingListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent businessUpdate(PublicMappingBusinessUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

}
